app.controller('navCtrl',['$scope','$rootScope','cookies',function($scope,$rootScope,cookies){
	$rootScope.userName = cookies.getCookie('userName');
		//菜单
//	$scope.menu = menulistSvc.menulist();
//	$scope.ele = '1';//业务角色权限标识
//	if ($scope.ele == '1') {
//		//$scope.navActive(0);
//		$state.go('main.eamic');
//	} else{
//		//$scope.navActive(3);
//		$state.go('main.riskManagement');
//	}
	$scope.navActive = function(index){
		var className = '';
		if(index == $rootScope.navIndex) return className += 'active';
		return className;
	}
}])